package com.RyanRestaurant.Controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 通用的控制器
 */

@Controller
@Scope("prototype")
public class CommonController {

    /**
     * 通用的页面跳转方法
     */
    @RequestMapping("/page_{page}")
    public String goPage(@PathVariable("page") String page)
    {
        return page;
    }
}
